<% content_for :sidebar do %>
<div>
	<h3><strong><%= l(:label_tags_selected) %></strong></h3>
	<div id="selected_tags">
		<%= render :partial => "selected_tags",:locals => {
			        :selected_tags => @selected_tags,:obj_flag => @obj_flag,:obj_id => @obj_id }%>
	</div>

	<h3><strong><%= l(:label_tags_related) %></strong></h3>
	<div id="related_tags">
		<%= render :partial => "related_tags",:locals => {:related_tags => @related_tags,
			                          :selected_tags => @selected_tags,:obj_flag => @obj_flag,:obj_id => @obj_id }%>
	</div>
</div>
<% end %>
<% content_for :content do %>
<div>
  <!--
	<h3><strong><%= l(:label_tags_search_result) %></strong></h3>
	<div align="right">
		<%= l(:label_tags_numbers) %>
		<%= l(:label_issue_plural) %>(<%= @issues_tags_num %>) |
		<%= l(:label_project_plural) %>(<%= @projects_tags_num %>) |
		<%= l(:label_user_plural) %>(<%= @users_tags_num %>) |
		<%= l(:label_tags_call)%>(<%= @bids_tags_num %>) |
		开源项目(<%= @open_source_projects_num %>)
		<%= l(:label_tags_contest)%>(<%= @contests_tags_num %>) |
	</div>
  -->
	<div id="show_results">
		<%# 求工厂模式重构 %>
		<%= render :partial => "tag_search_results",
					:locals => {:issues_results 	=> @issues_results,
								:projects_results 	=> @projects_results,
								:users_results 		=> @users_results,
								:bids_results 		=> @bids_results,
								:forums_results 	=> @forums_results,
								:contests_results 	=> @contests_results,
								:open_source_projects_results => @open_source_projects_results,
								:topics_results => @topics_results,
								:show_flag 			=> @obj_flag}
		%>
	</div>
	
</div>
    
<% end %>

